import request from '@/utils/request'

// 查询地图管理列表
export function planMapList(query) {
  return request({
    url: '/system/planMap/list',
    method: 'get',
    params: query
  })
}
//新增房间
export function roomMapAdd(data) {
    return request({
      url: '/system/roomMap',
      method: 'post',
      data: data
    })
  }
  // 房间列表
export function roomMapList(query) {
    return request({
      url: '/system/roomMap/list',
      method: 'get',
      params: query
    })
  }
  //新增shebei
export function deviceMapAdd(data) {
    return request({
      url: '/system/deviceMap',
      method: 'post',
      data: data
    })
  }
  // 设备列表
export function deviceMapList(query) {
    return request({
      url: '/system/deviceMap/list',
      method: 'get',
      params: query
    })
  }

  export function roomMapDel(data) {
    // /system/roomMap/{RoomMapIds}
    return request({
      url: '/system/roomMap/' + data,
      method: 'DELETE',
      data: data
    })
  }
  
  export function projectInfo(id) {
    return request({
      url: '/system/project/' + id,
      method: 'get',
      params: id
    })
  }
  export function roomMapEdit(data) {
    return request({
      url: '/system/roomMap',
      method: 'put',
      data: data
    })
  }
  export function deviceMappDel(data) {
    // /system/deviceMap/{DeviceMapIds}
    return request({
      url: '/system/deviceMap/' + data,
      method: 'DELETE',
      data: data
    })
  }